package com.hsgene.discount.service;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.support.Pagination;
import com.hsgene.discount.condition.DiscountCondition;
import com.hsgene.discount.domain.GeneticDiscount;
import com.hsgene.discount.dto.GeneticDiscountDto;

import java.util.List;

/**
 * @desc:优惠券
 * @author: fuxiang
 * @date: 2018/10/11 14:54
 */
public interface DiscountService   {
    /**
     * 添加
     * @param geneticDiscount
     * @return
     */
    ApiResult<GeneticDiscount> addDiscount(GeneticDiscount geneticDiscount);

    /**
     * 列表
     * @param condition
     * @return
     */
    ApiResult<Pagination<GeneticDiscountDto>> getList(DiscountCondition condition);

    /**
     * 删除
     * @param id
     * @return
     */
    ApiResult deleteDiscount(String id);

    /**
     * 批量删除
     * @param geneticDiscount
     * @return
     */
    ApiResult deleteDiscountMore(List<GeneticDiscount> geneticDiscount);
}
